package Interfaz;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
/**
 *
 * @author Jorge
 */
public class Frame extends JFrame {

    public static final int ANCHO = 450; //307*587
    public static final int ALTO = 587;
    public static final String TITLE = "Tetris";
    private Display game;

    public Frame(Display game_) {
        super();
        this.setResizable(false);
        this.setTitle(TITLE);
        this.setSize(ANCHO, ALTO);
        this.setLocationRelativeTo(null);
        this.game = game_;
        Container contentPane = this.getContentPane();
        contentPane.setLayout(new BorderLayout());
        contentPane.add(game, BorderLayout.CENTER);
      //  contentPane.add(panel, BorderLayout.EAST);
        this.addWindowListener(new ManejadorFrame());
    }

}
